import QtQuick 2.12
import QtQuick.Controls 2.12
import ".."

TextField {
    id: myTextInput
    selectByMouse: true
    validator: RegExpValidator { regExp: /^-?\d+(\.\d+)?$/ }
    property color borderColor: enabled ? Common.colorMain : Common.colorInvalid
    property color bodyColor: Common.colorTransParent
    background: Rectangle {
        color: myTextInput.bodyColor
        border.width: 1
        border.color: myTextInput.borderColor
    }
    color: Common.colorText
    selectedTextColor: "white"
    selectionColor: Common.colorMain
    font.family: Common.fontMain
}
